package com.nondo.rdp.finance.model.course;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.nondo.rdp.core.model.AttachBean;

/**
 * 课节详情组装类
 * 
 * @author zhaolijin@nondo
 *
 */
public class SectionBean {
	private Long id;// 课节ID
	private String name;// 课节标题
	private Long cid; //课程ID
	private int type;// 0：音频图文,1：视频
	private Date publishDate;// 发布时间
	private int readNum;// 阅读数
	private AttachBean mainImg; // 视频封面
	private AttachBean attach; // 音视频
	private String content; // 图文
	private List<SectionCommentBean> comments;// 课节评论
	private int commentNum;// 评论数
	private int sortNum;// 排序值

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Long getCid() {
		return cid;
	}

	public void setCid(Long cid) {
		this.cid = cid;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	@JsonFormat(pattern = "yyyy-MM-dd")
	public Date getPublishDate() {
		return publishDate;
	}

	public void setPublishDate(Date publishDate) {
		this.publishDate = publishDate;
	}

	public int getReadNum() {
		return readNum;
	}

	public void setReadNum(int readNum) {
		this.readNum = readNum;
	}

	public AttachBean getMainImg() {
		return mainImg;
	}

	public void setMainImg(AttachBean mainImg) {
		this.mainImg = mainImg;
	}

	public AttachBean getAttach() {
		return attach;
	}

	public void setAttach(AttachBean attach) {
		this.attach = attach;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public int getCommentNum() {
		return commentNum;
	}

	public void setCommentNum(int commentNum) {
		this.commentNum = commentNum;
	}

	public List<SectionCommentBean> getComments() {
		return comments;
	}

	public void setComments(List<SectionCommentBean> comments) {
		this.comments = comments;
	}

	public int getSortNum() {
		return sortNum;
	}

	public void setSortNum(int sortNum) {
		this.sortNum = sortNum;
	}

}
